#ifndef PARSE_H_
#define PARSE_H_

#include <stdio.h>
#include <stdbool.h>
#include "tournament.h"

/**
 * parse a line of input, and execute the user's commands
 * @param buffer a string, contains line of command
 * @param out the output file
 * @param tournament the Tournament to execute the commands on
 * @return
 * true, in case of success, or a treatable error
 * false, in case of fatal error
 */
bool parse_input(char buffer[], FILE *out, Tournament tournament);

#endif /* PARSE_H_ */
